import request from "@/utils/request";

export class tkTaskApi {
  static getPageList(params) {
    return request({
      url: "/tk/task/page/list",
      method: "get",
      params: params,
    });
  }
  //#- 添加
  static add(data) {
    return request({
      url: "/tk/task/add",
      method: "post",
      data: data,
    });
  }
  static getInfoById(id) {
    return request({
      url: `/tk/task/${id}`,
      method: "get",
    });
  }

  static edit(data) {
    return request({
      url: "/tk/task/edit",
      method: "put",
      data: data,
    });
  }

  static remove(ids) {
    return request({
      url: `/tk/task/bathRemove/${ids}`,
      method: "delete",
    });
  }

  // taskName列表
  static getTaskNameList() {
    return request({
      url: "/tk/task/getTaskNameList",
      method: "get",
    });
  }
}
